/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package thienphuc.patient.dao;

import java.util.Date;
import java.util.List;
import thienphuc.patient.dto.BenhAn;
import thienphuc.patient.dto.DonThuoc;

/**
 *
 * @author QuocDat
 */
public interface DonThuocDAO extends Dao<DonThuoc, Integer> {
    public final static String DON_THUOC_MA_DON_THUOC = "maDonThuoc";
    public final static String DON_THUOC_BENH_AN = "benhAn";
    public final static String DON_THUOC_THUOC = "thuoc";
    public final static String DON_THUOC_SO_LUONG = "cachDung";
    public final static String DON_THUOC_NGAY_KE_DON = "ngayKeDon";
    public final static String DON_THUOC_THANH_TIEN = "thanhTien";
    public final static String DON_THUOC_TRANG_THAI_THANH_TOAN = "trangThaiThanhToan";
    
    /**
     * Find DonThuoc by BenhAn
     * @param benhAn
     * @return
     * @throws Exception 
     */
    List<DonThuoc> findByBenhAn(BenhAn benhAn) throws Exception;
    
    /**
     * Find DonThuoc by TrangThaiThanhToan
     * @param trangThaiThanhToan
     * @return
     * @throws Exception 
     */
    List<DonThuoc> findByTrangThaiThanhToan(boolean trangThaiThanhToan) throws Exception;
    
    /**
     * Get DonThuoc by NgayKeDonStart and NgayKeDonEnd
     * @param ngayKeDonStart
     * @param ngayKeDonEnd
     * @return
     * @throws Exception 
     */
    List<DonThuoc> findByNgayKeDon(Date ngayKeDonStart, Date ngayKeDonEnd) throws Exception;
    
}